package com.fla.aiba.entity.user;

import com.fla.aiba.entity.Entitys;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 头像认证
 * Created by qudingyi on 2017/4/25.
 */

public class AvatarAuthentication extends Entitys implements Serializable {
    @Id
    private String userId;
    @Column(nullable = false)
    private String img;
    @Column(nullable = false,updatable = false)
    private Date createTime;
    /**
     * 审核时间
     */
    @Column(insertable = false)
    private Date auditTime=new Date();

    /**
     * 0待审核  1通过的 2未通过的
     */
    @Column(nullable = false,columnDefinition = "INT default 0")
    private Integer statics;

    @Column(insertable = false)
    private String auditBy="admin";

    /**
     * 审核批注
     */
    private String comments;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Integer getStatics() {
        return statics;
    }

    public void setStatics(Integer statics) {
        this.statics = statics;
    }

    public String getAuditBy() {
        return auditBy;
    }

    public void setAuditBy(String auditBy) {
        this.auditBy = auditBy;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }
}
